Minimum
It takes an upper bound and lower bound of comparisons to obtain a minimum of a set of elements.
Simultaneous min and max
We can obtain a min and max in comparisons. We could just find them separately which would be comparisons and be . It’s possible to find the min and the max in at most comparisons. The trick is to process the input in pairs. First compare the pair with each other, then compare the smaller number with the min and the larger with the max. A cost of 3 comparisons for every 2 elements.
Initializing the min / max
If is odd - Set both the min and max to the first element.
If is even - Compare the first two elements and set the lower to the min and the higher to the max.
Either way you still have comparisons. If n is even, you have 1 initial comparison followed by another comparisons, for a total of .